package com.bishe.demo.modules.account.service;

import com.bishe.demo.modules.account.entity.Resource;
import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.common.entity.SearchBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ResourceService {

	ResultEntity<Resource> insertResource(Resource resource);
	
	ResultEntity<Resource> updateResource(Resource resource);
	
	ResultEntity<Resource> deleteResourceByResourceId(int resourceId);
	
	Resource getResourceByResourceId(int resourceId);
	
	List<Resource> getResourcesByRoleId(int roleId);
	
	PageInfo<Resource> getResourcesBySearchBean(SearchBean searchBean);
}
